#include <stdio.h>

int main(void)
{
    int i = 10, j = 8;
    int *p;
    int * const q = &j;

    p = &i;

    printf("%d\n", *p); //show the value
    printf("%d\n", *q); 
    printf("%p\n", &i);  //show the address
    printf("%p\n", &p);
    printf("%p\n", &q);

    *p = 0;
    printf("%d\n", i);
}